package com.example.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "custom-config")
public class CustomConfig {
    @Value("${custom-config.scheduled.ptRunCron}")
    private String ptRunCron;
    @Value("${custom-config.alert.queryCountThreshold}")
    private String queryCountThreshold;
    @Value("${custom-config.alert.queryTimeAvg}")
    private String queryTimeAvg;
    @Value("${custom-config.alert.notificationUrl}")
    private String notificationUrl;

    public String getPtRunCron() {
        return ptRunCron;
    }

    public void setPtRunCron(String ptRunCron) {
        this.ptRunCron = ptRunCron;
    }

    public String getQueryCountThreshold() {
        return queryCountThreshold;
    }

    public void setQueryCountThreshold(String queryCountThreshold) {
        this.queryCountThreshold = queryCountThreshold;
    }

    public String getQueryTimeAvg() {
        return queryTimeAvg;
    }

    public void setQueryTimeAvg(String queryTimeAvg) {
        this.queryTimeAvg = queryTimeAvg;
    }

    public String getNotificationUrl() {
        return notificationUrl;
    }

    public void setNotificationUrl(String notificationUrl) {
        this.notificationUrl = notificationUrl;
    }
}
